package com.pazl.check.constants;

/**
 * 静态变量
 *
 */
public class Constants {

    /**
     * 默认编码
     */
    public static final String DEFAULT_CHARSET = "UTF-8";
    /**
     * 默认每页数据条数
     */
    public static final Integer DEFAULT_PAGE_SIZE = 10;
	/**
	 * 连接池大小
	 */
	public static final int DEFAULT_POOL_SIZE = 8;

    public static final class CHAR {

        public static final String MASK_CHAR = "*";

        public static final String LIKE_CHAR = "%";

        public static final String SLANT_CHAR = "/";

        public static final String POINT_CHAR = ".";

        public static final String UNDERLINE_CHAR = "_";

        public static final String MIDDLELINE_CHAR = "-";

        public static final String AND_CHAR = "&";

        public static final String QUESTION_CHAR = "?";
        
        public static final String COMMA_CHAR = ",";
        
        public static final String COLON_CHAR = ":";
        
        public static final String WELL_CHAR = "#";
        
        public static final String EQUAL_CHAR = "=";
        
        public static final String SEMICOLON_CHAR = ";";

		public static final String SQL_PATTEN_KEY = "\\#(.*?)\\#";
		//换行符
	    public static final String LF = "\n";
    }

    public static class MIME_TYPE {
        public static final String FORM = "application/x-www-form-urlencoded";
        public static final String JSON = "application/json";
        public static final String XML = "application/xml";
        public static final String PDF = "application/pdf";
        public static final String HTML = "text/html";
        public static final String PLAIN = "text/plain";
        public static final String IMAGE = "image/*";
        public static final String DOC = "application/msword";
        public static final String DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
    }
    
    public static final class IS {
        // 是
        public static final String YES = "1";
        // 否
        public static final String NO = "0";
    }

    public static final class RESPONSE {
        public static final String CODE = "code";
        public static final String MESSAGE = "message";
        public static final String DATA = "data";
    }
    
}
